//
//  ButtonCell.swift
//  CompareBuying
//
//  Created by 唐先才 on 16/1/28.
//  Copyright © 2016年 唐先才. All rights reserved.
//

import Foundation
import UIKit

class ButtonCell: UICollectionViewCell {
    
    @IBOutlet weak var _view: UIView!
    @IBOutlet weak var _iconView: UIImageView!
    @IBOutlet weak var _iconLabel: UILabel!
    
    func configCellWithModel(model: TxcModel) {
        guard let image = model.IcoImage, name = model.IcoName else {
            print("button赋值失败")
            return
        }
        _iconView.sd_setImageWithURL(NSURL(string: image))
        _iconLabel.text = name
    }
    
}



